
<script>

  $(document).ready(function(){
  
    $(".submit").click(function(){
		
		var uname=$("#uepass").val();
		var upass=$("#uepassc").val();
		
		if(jQuery.trim(uname) == "" || jQuery.trim(upass)=="" || jQuery.trim(upass) != jQuery.trim(uname))
		{
		
		   $(".error").text('Passwords doesnt match');
		   return false;
		}

			
		});
  });
  
  </script>
  
<div class="r_side flt_r">
	
		<form name="login" id='loginform' method="post" novalidate="novalidate" action="activateceo.php?action=chpwd">
			<span class='error'>{$error}</span>
			<div>
				<ul>
					<li class="">New Password:</li>
					<li><input id="uepass" type="text"  class="txt-box required" name="password1"></li>
				</ul>
			</div>
			<div class="clr_l">
				<ul>
					<li class="">Confirm Password:</li>
					<li><input id="uepassc" type="password" class="txt-box required" name="password2"></li>
				</ul>
			</div>
			<div class="clr_l">
				<ul>
					<li class="pad-top-5"><input type="submit" value="Change Password" class="submit" /></li>
				</ul>
			</div>
		</form>
	</div>